package mt;

import java.math.BigDecimal;
import java.util.Scanner;

/**
 * @author zhangmin
 * @create 2022-03-16 20:28
 */
public class meituan2021_1_2 {

    public static void main(String[] args) {
        Scanner cin=new Scanner(System.in);
        float sum=0,n=0;
        for (int i = 0; i < 5; i++) {
            int cur=cin.nextInt();
            sum+=(i+1)*cur;
            n+=cur;
        }
        double res=sum/n;
        System.out.println(res);
        int r= (int) (res*10);
        double rr=r/10.0;
        System.out.println(rr);
        BigDecimal bd=new BigDecimal(res);
        System.out.println(String.format("%.1f",res));
        System.out.println(bd.setScale(1,BigDecimal.ROUND_FLOOR));
    }
}
